package zj.com.net;

/**
 * Created by xi on 16/6/21.
 */
public class Urls {

    public static final String BASE_URL = "http://202.127.25.114:8083/soa/api/";

   // public  static  final String BASE_URL="http://qsms.ccshj.net:8083/soa/api/";
    //用户权限
    public static final String privilege = BASE_URL+"sqcp/core/privilege?UserUid=%s";

    //用户授权
    public static final String LOGIN_TOKEN = BASE_URL+"SQCP/Core/AccessToken?appId={appId}&secret={secret}&grant_type={grant_type}";
    //用户登录
    public static final String LOGIN_URL =BASE_URL+ "sqcp/user/login";
    //获取用户信息
    public static  final String USER_INFO = BASE_URL +"SQCP/User/getUserInfoByUid?UserID=%s";
    //注销
    public static  final String LOGOUT = BASE_URL + "sqcp/user/logout";

    //专业
    public static final String ZY = BASE_URL +"sqcp/inspectitem/GetInspectProfessionList";
    //根据专业获取检查项的内容
    public static final String GetInspectItemList = BASE_URL+"sqcp/inspectitem/GetInspectItemList?InspectItemCode=%s";

    //字典类型
    public static final String dictionary = BASE_URL+"sqcp/dictionary/Get?DicType=%s";

    //上传文件
    public static final String upload  = BASE_URL +"sqcp/resource/BatchCreate";

    //上传检查单信息
    public static final String addInspection = BASE_URL+"sqcp/inspection/AddInspection";

    //获取待确认的检查单接口

    public static final String GetToBeConfirmedInspectionList  =BASE_URL+ "sqcp/inspection/GetToBeConfirmedInspectionList";
    //待确认检查项

    public static final String GetInspectionDetail = BASE_URL+"sqcp/inspection/GetInspectionDetail?InspectionID=%s";

    //确认检查项
    public static final String ConfirmInspection = BASE_URL+"sqcp/inspection/ConfirmInspection";

    //待整改的列表
    public static final String GetToBeRepairedInspectionList = BASE_URL+"sqcp/repairrecord/GetToBeRepairedInspectionList";

    //待审核列表
    public static  final String GetPenddingAuditRepairRecordList   = BASE_URL +"sqcp/repairRecord/GetPenddingAuditRepairRecordList";

    //获取待整改明细
    public static final String GetToBeRepairedInspectionDetail = BASE_URL+"sqcp/repairrecord/GetToBeRepairedInspectionDetail?InspectionID=%s&InspectionItemID=%s";

    //获取待审核明细

    public static final String GetPenddingAuditRepairRecordDetail = BASE_URL+"sqcp/repairrecord/GetPenddingAuditRepairRecordDetail?InspectionID=%s&InspectionItemID=%s";


    //整改明细检查项审批列表
    public static final String  GetRiskRepairRecordDetail =BASE_URL+ "sqcp/repairrecord/GetRiskRepairRecordDetail?InspectionID=%s&RepairID=%s";


    //提交待整改的
    public static  final String AddRepairRecord = BASE_URL+"sqcp/repairrecord/AddRepairRecord";


    //待审核 审核  拒绝操作
    public static final String AuditRepairRecord = BASE_URL + "sqcp/repairrecord/AuditRepairRecord";


    //公司选择
    public static final String QueryOrgs=  BASE_URL+ "sqcp/org/QueryOrgs?UserID=%s&";
    //部门选择
    public static final String GetChildren = BASE_URL+ "sqcp/org/GetChildren?parentOrgCode=%s";

    //用户名搜索
    public static final String GetUserListByKeyWord =BASE_URL+ "sqcp/user/GetUserListByKeyWord?keyword=%s&UserRole=%s&DeptCode=%s";

    //按隐患类别统计
    public static final String GetAnalysisForCompanyByRiskType = BASE_URL+"sqcp/report/GetAnalysisDataList";

    //项目列表
    public static final String GetProjectList = BASE_URL + "sqcp/coreproject/GetProjectList?orgCode=%s";


    //根据检查项ID获取详情
    public static final String GetInspectItemDetail =BASE_URL+"sqcp/InspectItem/GetInspectItemDetail?InspectItemID=%s";


    //==================质量监控==================================
    //获取关键工序列表
    public static final String GetCriticalActivity = BASE_URL+"sqcp/criticalactivity/GetCriticalActivityList?UserID=%s&projectId=%s&Keyword=%s&SGStatus=%s&Status=%s&pagesize=10&pageindex=1";

    //提交确认工序
    public static final String Finished =BASE_URL+ "sqcp/criticalactivity/Finished";

    //获取待确认工序的列表
    public static final String  GetToBeConfirmedCriticalActivity = BASE_URL+ "sqcp/criticalactivity/GetToBeConfirmedCriticalActivity?UserID=%s&PageIndex=%s&PageSize=%s";


    //工序明细查阅
    public static final String Confirm = BASE_URL+ "sqcp/criticalactivity/Confirm";


    //实体情况采集列表
    public static final String GetEntityProjectList = BASE_URL+ "sqcp/entityproject/GetEntityProjectList?UserID=%s&ProjectId=%s&Keyword=%s&PageIndex=%s";


    //保存实体工程采集
    public static final String SaveEntityProject  = BASE_URL+  "sqcp/entityproject/SaveEntityProject";




    //图片的 url

    public static final String GetResourceContent  ="http://qsms.ccshj.net:8081/api/sqcp/resource/GetResourceContent?id=";
    public static final String GetImg = BASE_URL+"sqcp/resource/GetImage?id=%s&Type=%s";

    public static final String GETAdv = BASE_URL+"sqcp/core/getAd?code=%s";

    //获取所有的组织机构
    public static final String GetAllOrgs = BASE_URL+"sqcp/org/GetAllOrgs";

    //待确认陪同列表
    public static final String GetAccompanyInspectionList  =BASE_URL+"sqcp/inspection/GetAccompanyInspectionList";

    //确认陪同检查
    public static final String ConfirmAccompany = BASE_URL+"sqcp/inspection/ConfirmAccompany?AccompanyID=%s";

    public static final String GetLatestVersion =  BASE_URL+"sqcp/core/GetLatestVersion";
}
